//通过vue-router实现模板路由配置
import { createRouter, createWebHashHistory, createWebHistory } from 'vue-router'
import { constansRoute } from './routers'

let router = createRouter({
    //路由模式
    history: createWebHistory(),
    routes: constansRoute,
    //滚动行为
    scrollBehavior() {
        return {
            left: 0,
            top: 0
        }
    }
});


export default router;




